<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>进思用户列表中表格的修改功能</title>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        *{
            background-color:rgb(243,243,243);
        }
        .box{
            width:700px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div>
    <div class="box layui-form">
        <div class="layui-form-item" style="margin-top: 30px">
            <label class="layui-form-label">用户编号：</label>
            <div class="layui-input-inline">
                <input type="text" name="userCode" id="userCode" lay-verify="title" autocomplete="off" placeholder="" class="layui-input" disabled>
            </div>
            <label class="layui-form-label" style="margin-left: 70px;">用户账号：</label>
            <div class="layui-input-inline">
                <input type="text" id="account" name="account" lay-verify="title" autocomplete="off" placeholder="" class="layui-input" disabled>
            </div>

            <label class="layui-form-label" style="margin-top: 20px;">用户昵称：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="nickname" name="nickname" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>
            <label class="layui-form-label" style="margin-top: 20px;margin-left: 70px;">学习时长：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="studyDate" name="studyDate" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>

            <label class="layui-form-label" style="margin-top: 20px;">所属专业：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="profession" name="profession" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>
            <label class="layui-form-label" style="margin-top: 20px;margin-left: 70px;">入学时间：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="entranceDate" name="entranceDate" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>

            <label class="layui-form-label" style="margin-top: 20px;">毕业时间：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="graduationDate" name="graduationDate" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>
            <label class="layui-form-label" style="margin-top: 20px;margin-left: 70px;">量化积分：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="integration" name="integration" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>

            <label class="layui-form-label" style="margin-top: 20px;">身份证号：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="idCard" name="idCard" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>
            <label class="layui-form-label" style="margin-top: 20px;margin-left: 70px;">个性签名：</label>
            <div class="layui-input-inline" style="margin-top: 20px;">
                <input type="text" id="freestyle" name="freestyle" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>

        </div>
        <div class="layui-form-item">
            <div>
                <label class="layui-form-label">学习内容：</label>
                <div class="layui-input-inline">
                    <input type="text" id="studyContent" name="studyContent" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
                </div>
            </div>


            <div class="layui-inline">
                <label class="layui-form-label" style="margin-left: 70px;">账号状态：</label>
                <div class="layui-input-inline">
                    <select name="status" lay-verify="required" style="width: 190px; height: 38px;" id="status">
                        <option value="2">正常</option>
                        <option value="3">禁言</option>
                        <option value="4">注销</option>
                        <option value="5">封停</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">用户介绍：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remarks" id="remarks"></textarea>
            </div>
        </div>
    </div>
    <input id="updateDate" hidden/>
</div>
</body>
<script>
    layui.use(['jquery','layer','table','form','laydate'],function() {
        var $ = layui.jquery;
        var layer = layui.layer;
        var table = layui.table;
        var form = layui.form;
        var laydate = layui.laydate;

        laydate.render({
            elem: '#graduationDate',
            type: 'datetime',
            trigger: 'click'
        })

        laydate.render({
            elem: '#entranceDate',
            type: 'datetime',
            trigger: 'click'
        })

        var UserStatus = JSON.parse(localStorage.getItem("UserStatus"));
        $("#status").val(UserStatus);
        form.render("select");
    })
</script>
</html>